import request from '@/utils/request';
import URL from '@/api/baseUrl';

export default class Customers {
  /**
 * 查询列表
 */
  static list(data = {}) {
    return request.get(`${URL.comBasic}/bas-customers/list`, data)
  }

  /**
* 查询列表
*/
  static selectAllCoopList(data = {}) {
    return request.get(`${URL.comBasic}/bas-customers-coop/selectAllCoopList`, data)
  }

  /**
* 查询列表
*/
  static selectAllList(data = {}) {
    return request.get(`${URL.comBasic}/bas-customers-coop/list`, data)
  }
  /**
   * 查询详情
   */
  static getInfo(id) {
    return request.get(`${URL.comBasic}/bas-customers/getInfo/${id}`)
  }
  /**
   * 删除
   */
  static remove(ids) {
    return request.delete(`${URL.comBasic}/bas-customers/remove`, ids)
  }
  /**
   * 新增
   */
  static add(data = {}) {
    return request.post(`${URL.comBasic}/bas-customers/add`, data)
  }
  /**
   * 修改
   */
  static edit(data = {}) {
    return request.put(`${URL.comBasic}/bas-customers/edit`, data)
  }

  static getInfoByCode(data) {
    return request.get(`${URL.comBasic}/bas-customers/getInfoByCode`, data)
  }
  static audit(data) {
    return request.post(`${URL.comBasic}/bas-customers/audit`, data)
  }
  static submit(data) {
    return request.post(`${URL.comBasic}/bas-customers/submit`, data)
  }
  static followUp(data) {
    return request.post(`${URL.comBasic}/bas-customers/followUp`, data)
  }
}